package com.practice.aiGenericsReflection009.generic;

/**
 * @author yangdejun
 * @date 2020/08/03
 **/
public class GenericMethod01<T> {
    public <T> T genMethod(Class<T> tClass) throws IllegalAccessException, InstantiationException {
        T instance = tClass.newInstance();
        return instance;
    }

    public <T> String getName() {
        return "success";
    }
}
